package frsf.cidisi.exercise.tp2.situationCalculus;

import frsf.cidisi.faia.agent.Agent;
import frsf.cidisi.faia.agent.situationcalculus.SituationCalculusPerception;
import frsf.cidisi.faia.environment.Environment;

public class ArqueologoPerception extends SituationCalculusPerception {

  	
	//TODO: Setup Sensors
	private double tesoroactual;
	private double pesoTesoroActual;
	private double[][] distribuciondetesoros;
	

    public ArqueologoPerception() {
        super();

		//TODO: Complete Method
    }

    @Override
    public void initPerception(Agent agent, Environment environment) {
        // TODO Auto-generated method stub
    }

    @Override
    public String toString() {
        StringBuffer perceptionString = new StringBuffer("perception(["
        								+getdistribuciondetesoros()[0][0]+","
        								+getdistribuciondetesoros()[1][0]+","
        								+getdistribuciondetesoros()[2][0]+","
        								+getdistribuciondetesoros()[3][0]+","
        								+getdistribuciondetesoros()[4][0]+","
        								+getdistribuciondetesoros()[5][0]+","
        								+getdistribuciondetesoros()[6][0]+","
        								+getdistribuciondetesoros()[7][0]+","
        								+getdistribuciondetesoros()[8][0]+","
        								+getdistribuciondetesoros()[9][0]+","
        								+getdistribuciondetesoros()[10][0]
        								+"],"
        								+gettesoroactual()+","
        								+getPesoTesoroActual()+")"
        								);
        //Percepcion en formato de prolog
        
        //TODO: Complete Method con la query de prolog!!

        return perceptionString.toString();
    }
    
    
     public double gettesoroactual(){
        return tesoroactual;
     }
     public void settesoroactual(double arg){
        this.tesoroactual = arg;
     }
     public double[][] getdistribuciondetesoros(){
        return distribuciondetesoros;
     }
     public void setdistribuciondetesoros(double[][] arg){
        this.distribuciondetesoros = arg;
     }

	public void setPesoTesoroActual(double pesoTesoroActual) {
		this.pesoTesoroActual = pesoTesoroActual;
	}

	public double getPesoTesoroActual() {
		return pesoTesoroActual;
	}


}
